import Layout from '@/layout'
const meta = {auth: true}
const _import = require('@/utils/util.import.' + process.env.NODE_ENV)

export default {
  path: '/wms',
  component: Layout,
  name: 'wms',
  meta,
  redirect: { name: 'wms_baseinfo_places_area' },
  children: (pre => [
      {
        path: '/wms/baseinfo/places_area',
        component: _import('modules/wms/baseinfo/places_area.vue'),
        name: `${pre}baseinfo_places_area`,
        meta: { ...meta,title: '库位库区' }
      },
      {
        path: '/wms/baseinfo/container',
        component: _import('modules/wms/baseinfo/container.vue'),
        name: `${pre}baseinfo_container`,
        meta: { ...meta,title: '容器管理'}
      },
			{
			  path: '/wms/baseinfo/master',
			  component: _import('modules/wms/baseinfo/master.vue'),
			  name: `${pre}baseinfo_master`,
			  meta: { ...meta,title: '物料管理' }
			},
      {
        path: '/wms/ordercenter/purchaseorder',
        component: _import('modules/wms/ordercenter/purchaseorder.vue'),
        name: `${pre}ordercenter_purchaseorder`,
        meta: { ...meta,title: '采购入库单' }
      },
      {
        path: '/wms/ordercenter/production_in',
        component: _import('modules/wms/ordercenter/production_in.vue'),
        name: `${pre}ordercenter_production_in`,
        meta: { ...meta,title: '生产入库单' }
      },
      {
        path: '/wms/ordercenter/other_in',
        component: _import('modules/wms/ordercenter/other_in.vue'),
        name: `${pre}ordercenter_other_in`,
        meta: { ...meta,title: '其他入库单' }
      },
      {
        path: '/wms/ordercenter/out_require',
        component: _import('modules/wms/ordercenter/out_require.vue'),
        name: `${pre}ordercenter_out_require`,
        meta: { ...meta,title: '领料出库单' }
      },
      {
        path: '/wms/ordercenter/ship_order',
        component: _import('modules/wms/ordercenter/ship_order.vue'),
        name: `${pre}ordercenter_ship_order`,
        meta: { ...meta,title: '发货出库单' }
      },
      {
        path: '/wms/ordercenter/other_out',
        component: _import('modules/wms/ordercenter/other_out.vue'),
        name: `${pre}ordercenter_other_out`,
        meta: { ...meta,title: '其他出库单' }
      },
      {
        path: '/wms/ordercenter/cyclecount',
        component: _import('modules/wms/ordercenter/cyclecount.vue'),
        name: `${pre}ordercenter_cyclecount`,
        meta: { ...meta,title: '盘点单' }
      },
	  {
	    path: '/wms/operations/test',
	    component: _import('modules/wms/operations/test.vue'),
	    name: `${pre}ordercenter_test`,
	    meta: { ...meta,title: '质检单' }
	  },{
	    path: '/wms/operations/putin',
	    component: _import('modules/wms/operations/putin.vue'),
	    name: `${pre}ordercenter_putin`,
	    meta: { ...meta,title: '待入库单' }
	  },
      {
        path: '/wms/operations/puton',
        component: _import('modules/wms/operations/puton.vue'),
        name: `${pre}operations_puton`,
        meta: { ...meta,title: '组盘上架' }
      },
      {
        path: '/wms/operations/picktake',
        component: _import('modules/wms/operations/picktake.vue'),
        name: `${pre}operations_picktake`,
        meta: { ...meta,title: '拣配料' }
      },
      {
        path: '/wms/operations/cyclecount',
        component: _import('modules/wms/operations/cyclecount.vue'),
        name: `${pre}operations_cyclecount`,
        meta: { ...meta,title: '盘点' }
      },
      {
        path: '/wms/operations/transfer_place',
        component: _import('modules/wms/operations/transfer_place.vue'),
        name: `${pre}operations_transfer_place`,
        meta: { ...meta,title: '移位' }
      },
      {
        path: '/wms/operations/transfer_warehouse',
        component: _import('modules/wms/operations/transfer_warehouse.vue'),
        name: `${pre}operations_transfer_warehouse`,
        meta: { ...meta,title: '移库' }
      },
      {
        path: '/wms/summary/in_out_records',
        component: _import('modules/wms/summary/in_out_records.vue'),
        name: `${pre}summary_in_out_records`,
        meta: { ...meta,title: '出入库台账' }
      },
      {
        path: '/wms/summary/inventory_now',
        component: _import('modules/wms/summary/inventory_now.vue'),
        name: `${pre}summary_inventory_now`,
        meta: { ...meta,title: '实时库存' }
      },
      {
        path: '/wms/summary/inventory_history',
        component: _import('modules/wms/summary/inventory_history.vue'),
        name: `${pre}summary_inventory_history`,
        meta: { ...meta,title: '历史库存' }
      },
      {
        path: '/wms/summary/cyclecount_diff',
        component: _import('modules/wms/summary/cyclecount_diff.vue'),
        name: `${pre}summary_cyclecount_diff`,
        meta: { ...meta,title: '盘点统计' }
      },
			{
			  path: '/wms/summary/report_in',
			  component: _import('modules/wms/summary/report_in.vue'),
			  name: `${pre}summary_report_in`,
			  meta: { ...meta,title: '采购报表' }
			},
			{
			  path: '/wms/summary/report_count',
			  component: _import('modules/wms/summary/report_count.vue'),
			  name: `${pre}summary_report_count`,
			  meta: { ...meta,title: '盘点报表' }
			},
    ]
  )('wms_')
}
